<?php
	$idcompania = $_GET['idcompania'];
	$nombre = $_GET['nombre'];
	include 'open-connection.php';

	// Performing SQL query
	$query = "INSERT INTO compania (compania.nombre) VALUES ('$nombre')";
	$result = mysql_query($query) or die('Query failed: ' . mysql_error());

	include 'close-connection.php';
	
	include 'select-compania.php';
?>